package com.more.spring.boot.springbootmybatisdemo.service;

import com.more.spring.boot.springbootmybatisdemo.pojo.PageResult;
import com.more.spring.boot.springbootmybatisdemo.pojo.User;

import java.util.List;

public interface UserService {

    public User queryUserById(int id);

    List<User> queryUserList();

    /**
     * @param pageSize   每页数据条数
     * @param offsetData //偏移量
     * @return
     */
    PageResult queryLimitUserList(int pageSize, int offsetData);

    int addNewUser(User user);

    int deleteUserById(int id);

    int updateUser(User user);

    PageResult queryUserByNameAndGender(User user);
}
